package dancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceCityModelOnHoldCondition 城池模板挂机奖励条件
type DanceCityModelOnHoldCondition struct {
	Id              int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	ModelNo         int64          `json:"modelNo" gorm:"column:model_no;type:bigint;default:0;not null;comment:模版编号"`
	Minutes         int            `json:"minutes" gorm:"column:minutes;type:bigint;default:0;not null;comment:分钟"`
	ElementNoObject string         `json:"elementNoObject" gorm:"column:element_no_object;type:varchar(256);not null;default:'';comment:奖品对象，编号-数量-有效期(小时)-概率"`
	Label           int            `json:"label" gorm:"column:label;type:bigint;default:0;not null;comment:奖励类型 1:固定奖励 2:随机奖励"`
	CreatedId       int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"`
	UpdateId        int64          `json:"update_id" gorm:"column:update_id;type:bigint;default:0;not null;comment:更新人id"`
	CreatedAt       time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt       time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt       gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
